﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace HengTong.DataAccess.Migrations
{
    /// <inheritdoc />
    public partial class 供应链基础表增加创建人 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "CreateBy",
                table: "SysMaterialGroup",
                type: "nvarchar(64)",
                maxLength: 64,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "UpdateBy",
                table: "SysMaterialGroup",
                type: "nvarchar(64)",
                maxLength: 64,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "CreateBy",
                table: "SysMaterialAttribute",
                type: "nvarchar(50)",
                maxLength: 50,
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "CreateTime",
                table: "SysMaterialAttribute",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "UpdateBy",
                table: "SysMaterialAttribute",
                type: "nvarchar(50)",
                maxLength: 50,
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "UpdateTime",
                table: "SysMaterialAttribute",
                type: "datetime2",
                nullable: true);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "CreateBy",
                table: "SysMaterialGroup");

            migrationBuilder.DropColumn(
                name: "UpdateBy",
                table: "SysMaterialGroup");

            migrationBuilder.DropColumn(
                name: "CreateBy",
                table: "SysMaterialAttribute");

            migrationBuilder.DropColumn(
                name: "CreateTime",
                table: "SysMaterialAttribute");

            migrationBuilder.DropColumn(
                name: "UpdateBy",
                table: "SysMaterialAttribute");

            migrationBuilder.DropColumn(
                name: "UpdateTime",
                table: "SysMaterialAttribute");
        }
    }
}
